import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
    CreateDateColumn,
} from 'typeorm';
@Entity()
export class User {
    @PrimaryGeneratedColumn()
    id: number;
    @Column()
    account: string;
    @Column()
    password: string;
    @Column({ nullable: true })
    avatar: string;
    @Column({ name: 'user_name' })
    userName: string;
    @Column({ name: 'phone_number' })
    phoneNumber: string;
    @CreateDateColumn({ name: 'create_time' })
    createTime: Date;
    @Column({ default: 1, name: 'is_delete' })
    isDelete: 0 | 1;
}
